package top.yueyazhui.vhr.util;

import org.springframework.security.core.context.SecurityContextHolder;
import top.yueyazhui.vhr.model.Hr;

public class HrUtil {

    public static Hr getCurrentHr() {
        return (Hr) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    }
}
